package cn.oms.manage.dao.persist.repository;

import cn.oms.commons.pojo.vo.PageData;
import cn.oms.manage.pojo.entity.Doctor;
import cn.oms.manage.pojo.vo.*;

import java.util.List;

public interface IDoctorRepository {

    /**
     * 插入订单数据
     *
     * @return 受影响的行数
     */
    int insert(Doctor doctor);

    /**
     * 批量插入订单数据
     *
     * @return 受影响的行数
     */
    int insertBatch(List<Doctor> doctorList);
    int deleteById(Long id);

    int update(Doctor doctor);

    DoctorStandardVO getStandardById(Long id);

    PageData<DoctorListVO> list(Integer pageNum, Integer pageSize);

    int countByName(String name);

    List<DoctorNameListVO> listDoctorName();

    int countByDepartmentId(Long departmentId);
}
